package org.groupg.model;

public class UserInfo {
    private String userid, username, orgid, usertype, userstatue;

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getOrgid() {
        return orgid;
    }

    public void setOrgid(String orgid) {
        this.orgid = orgid;
    }

    public String getUsertype() {
        return usertype;
    }

    public void setUsertype(String usertype) {
        this.usertype = usertype;
    }

    public String getUserstatue() {
        return userstatue;
    }

    public void setUserstatue(String userstatue) {
        this.userstatue = userstatue;
    }

    public UserInfo(String userid, String username, String orgid, String usertype, String userstatue) {
        this.userid = userid;
        this.username = username;
        this.orgid = orgid;
        this.usertype = usertype;
        this.userstatue = userstatue;
    }

    @Override
    public String toString() {
        return "userinfo{" +
                "userid='" + userid + '\'' +
                ", username='" + username + '\'' +
                ", orgid='" + orgid + '\'' +
                ", usertype='" + usertype + '\'' +
                ", userstatue='" + userstatue + '\'' +
                '}';
    }

    public String getInsertSQLString() {
        return String.format("INSERT INTO userinfo (userid, username, orgid, usertype, userstatue) VALUES ('"+userid+"','"+username+"','"+orgid+"','"+usertype+"','"+userstatue+"');");
    }
}
